package com.entor.springboot201912.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestController{
    @RequestMapping("/index")
    public ModelAndView index(){
        System.out.println("进入控制器。。。");
        ModelAndView mav = new ModelAndView();
        mav.setViewName("index");
        return mav;
    }
}
